
#ifndef	__KC_SAKCAB_OPLOG_ITERATOR_HPP_2010__
#define	__KC_SAKCAB_OPLOG_ITERATOR_HPP_2010__

#include <string>
#include <fstream>

#include "timestamp.hpp"


namespace	sakcab	{

class	OpLogIterator
{

public	:
	OpLogIterator( const char* filename, const char* key_encode, const char* value_encode );
	virtual	~OpLogIterator(); 

public	:
	virtual	int	next( Timestamp& ts, std::string& op, std::string& kpin, std::string& key, std::string& value );

private	:

	std::ifstream	_ifs;

	const char*	_key_encode;
	const char*	_value_encode;

	bool	_key_encode_base64_b;
	bool	_value_encode_base64_b;
};	//// class OpLogIterator

}	//// namespace sakcab

#endif	//	__KC_SAKCAB_OPLOG_ITERATOR_HPP_2010__

